package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DeviceBindingInfoMapper;
import com.ruoyi.system.domain.DeviceBindingInfo;
import com.ruoyi.system.service.IDeviceBindingInfoService;

/**
 * 设备绑定Service业务层处理
 * //20250214 云计算-智能车联-04-数据统计
 * @author 刘进祥
 * @date 2025-02-14
 */
@Service
public class DeviceBindingInfoServiceImpl implements IDeviceBindingInfoService 
{
    @Autowired
    private DeviceBindingInfoMapper deviceBindingInfoMapper;

    /**
     * 查询设备绑定
     * 
     * @param id 设备绑定主键
     * @return 设备绑定
     */
    @Override
    public DeviceBindingInfo selectDeviceBindingInfoById(Long id)
    {
        return deviceBindingInfoMapper.selectDeviceBindingInfoById(id);
    }

    /**
     * 查询设备绑定列表
     * 
     * @param deviceBindingInfo 设备绑定
     * @return 设备绑定
     */
    @Override
    public List<DeviceBindingInfo> selectDeviceBindingInfoList(DeviceBindingInfo deviceBindingInfo)
    {
        return deviceBindingInfoMapper.selectDeviceBindingInfoList(deviceBindingInfo);
    }

    /**
     * 新增设备绑定
     * 
     * @param deviceBindingInfo 设备绑定
     * @return 结果
     */
    @Override
    public int insertDeviceBindingInfo(DeviceBindingInfo deviceBindingInfo)
    {
        return deviceBindingInfoMapper.insertDeviceBindingInfo(deviceBindingInfo);
    }

    /**
     * 修改设备绑定
     * 
     * @param deviceBindingInfo 设备绑定
     * @return 结果
     */
    @Override
    public int updateDeviceBindingInfo(DeviceBindingInfo deviceBindingInfo)
    {
        return deviceBindingInfoMapper.updateDeviceBindingInfo(deviceBindingInfo);
    }

    /**
     * 批量删除设备绑定
     * 
     * @param ids 需要删除的设备绑定主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBindingInfoByIds(Long[] ids)
    {
        return deviceBindingInfoMapper.deleteDeviceBindingInfoByIds(ids);
    }

    /**
     * 删除设备绑定信息
     * 
     * @param id 设备绑定主键
     * @return 结果
     */
    @Override
    public int deleteDeviceBindingInfoById(Long id)
    {
        return deviceBindingInfoMapper.deleteDeviceBindingInfoById(id);
    }
}
